import request from '@/utils/request'

//根据当前登录用户id获取购物车商品信息
export function queryShoppingCarList(params){
	return request({
		url:'/goods/queryShoppingCarList',
		method:'post',
		params
	})
}

//根据用户id+商品id添加购物车商品
export function addShoppingGoods(params){
	return request({
		url:'/goods/addShoppingGoods',
		method:'post',
		params
	})
}


//根据用户id+商品id删除购物车商品
export function deleShoppingGoods(params){
	return request({
		url:'/goods/deleShoppingGoods',
		method:'post',
		params
	})
}

//根据用户id+商品id+商品num修改购物车商品数量
export function updateShoppingGoods(params){
	return request({
		url:'/goods/updateShoppingGoods',
		method:'post',
		params
	})
}

